<?php

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class GiftBackRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' =>[ 'web','auth','permissions.check'], 'namespace'=>'Backstage', 'prefix' =>'backstage/gift/'], function ($router) {
            $router->get('add-gift', [ 'uses' => 'GiftControllers@getAddGift'])->name('get.gift.add-gift');
            $router->get('gift-list', [ 'uses' => 'GiftControllers@getGiftList'])->name('get.gift.gift-list');
            $router->get('gift-update', [ 'uses' => 'GiftControllers@getGiftUpdate'])->name('get.gift.gift-list.gift-update');
            $router->get('gift-use-range', [ 'uses' => 'GiftControllers@getGiftUseRange'])->name('get.gift.gift-list.gift-use-range');
            $router->get('gift-use-range-details', [ 'uses' => 'GiftControllers@getGiftUseRangeDetails'])->name('get.gift.gift-list.gift-use-range-details');
            $router->post('gift-update', [ 'uses' => 'GiftControllers@postGiftUpdate'])->name('post.gift.gift-list.gift-update');
            $router->post('add-gift', [ 'uses' => 'GiftControllers@postAddGift'])->name('post.gift.add-gift.add-gift');
            $router->post('update-stock', [ 'uses' => 'GiftControllers@postUpdateStock'])->name('post.gift.gift-list.update-stock');
            $router->post('update-quota', [ 'uses' => 'GiftControllers@postUpdateQuota'])->name('post.gift.gift-list.update-quota');
            $router->post('update-gift-use-time', [ 'uses' => 'GiftControllers@postUpdateGiftUseTime'])->name('post.gift.gift-list.update-gift-use-time');
            $router->post('gift-use-range-details', [ 'uses' => 'GiftControllers@postGiftUseRangeDetails'])->name('post.gift.gift-list.gift-use-range-details');
            $router->post('delete-gift', [ 'uses' => 'GiftControllers@postDeleteGift'])->name('post.gift.gift-list.delete-gift');
            $router->post('fav-gift-delete', [ 'uses' => 'GiftControllers@postFavGiftDelete'])->name('post.gift.gift-list.fav-gift-delete');
            $router->post('res-search', [ 'uses' => 'GiftControllers@postResSearch'])->name('post.gift.gift-list.res-search');
            $router->post('add-gift-map', [ 'uses' => 'GiftControllers@addGiftMap'])->name('post.gift.gift-list.add-gift-map');
        });
    }
}